package com.eta.gateway;

import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication(
        exclude = {
                DataSourceAutoConfiguration.class,
                MybatisPlusAutoConfiguration.class
        }
)
@ComponentScan(
        basePackages = "com.eta",
        excludeFilters = {
                @ComponentScan.Filter(
                        type = FilterType.REGEX,
                        pattern = "com.eta.common.config.WebConfig"
                ),
                @ComponentScan.Filter(
                        type = FilterType.REGEX,
                        pattern = "com.eta.common.interceptor.*"
                ),
                @ComponentScan.Filter(
                        type = FilterType.REGEX,
                        pattern = "com.eta.common.config.MyBatisConfig"
                )
        }
)
public class EtaGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(EtaGatewayApplication.class, args);
    }

}
